import { createRouter, createWebHistory } from "vue-router";
import Dashboard from "@/views/dashboard.vue";
import TableGenerator from "@/views/TableGenerator/index.vue";
import FormGenerator from "@/views/FormGenerator/index.vue";
import CodeDiff from "@/views/CodeDiff/index.vue";

const routes = [
  { path: "/", component: Dashboard },
  { path: "/form", component: FormGenerator },
  { path: "/table", component: TableGenerator },
  { path: "/diff", component: CodeDiff },
];

const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
